package com.why.commonresults;



/**
 * @program: guli_parent
 * @description:枚举类的名字必须大写！！！
 * @author: @why
 * @create: 2021-01-25 20:44
 **/
public enum RESULTCODE {
    /**
     * 响应成功
     */
    SUCCESS(20000,"响应成功"),
    /**
     * 响应失败
     */
    ERR(20001,"响应失败");

    private int code;
    private String message;

    RESULTCODE(int code,String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
